from .docxlsTOtxt import *
from .pdfTOtxt import *
from .changeTo16hex import *
import platform
import chardet

def getCodingType(filePath):
    f = open(filePath, 'rb')
    _type = chardet.detect(f.read())
    return _type


def getPlatform():
    win = 'Windows' in platform.system()
    linux = 'Linux' in platform.system()
    if win:
        return 'Windows'
    else:
        return 'Linux'
